package com.houdoudou.customer;

import com.houdoudou.customer.find.SearchMachineActivity;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.LinearLayout;

public class ChooseMachineActivity extends Activity implements View.OnClickListener{
    LinearLayout searchMachine,scanMachine;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.act_choose_machine);
		
		searchMachine= (LinearLayout) findViewById(R.id.lt_search_act_choose_mchn);
		scanMachine=(LinearLayout) findViewById(R.id.lt_scan_act_choose_mchn);
		searchMachine.setOnClickListener(this);
		scanMachine.setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.choose_machine, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if(v==searchMachine){
			 Intent intent= new Intent(ChooseMachineActivity.this, SearchMachineActivity.class);    	   
		     startActivity(intent);
		     ChooseMachineActivity.this.finish();
		}
		if(v==scanMachine){
			
		}
		
		
		
	}

}
